﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013D7 RID: 5079
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyBuildStartStepScRsp : IMessage<TrainPartyBuildStartStepScRsp>, IMessage, IEquatable<TrainPartyBuildStartStepScRsp>, IDeepCloneable<TrainPartyBuildStartStepScRsp>, IBufferMessage
	{
		// Token: 0x1700400D RID: 16397
		// (get) Token: 0x0600E37A RID: 58234 RVA: 0x002603B9 File Offset: 0x0025E5B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyBuildStartStepScRsp> Parser
		{
			get
			{
				return TrainPartyBuildStartStepScRsp._parser;
			}
		}

		// Token: 0x1700400E RID: 16398
		// (get) Token: 0x0600E37B RID: 58235 RVA: 0x002603C0 File Offset: 0x0025E5C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyBuildStartStepScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700400F RID: 16399
		// (get) Token: 0x0600E37C RID: 58236 RVA: 0x002603D2 File Offset: 0x0025E5D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyBuildStartStepScRsp.Descriptor;
			}
		}

		// Token: 0x0600E37D RID: 58237 RVA: 0x002603D9 File Offset: 0x0025E5D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyBuildStartStepScRsp()
		{
		}

		// Token: 0x0600E37E RID: 58238 RVA: 0x002603E1 File Offset: 0x0025E5E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyBuildStartStepScRsp(TrainPartyBuildStartStepScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.coinCost_ = other.coinCost_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E37F RID: 58239 RVA: 0x00260412 File Offset: 0x0025E612
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyBuildStartStepScRsp Clone()
		{
			return new TrainPartyBuildStartStepScRsp(this);
		}

		// Token: 0x17004010 RID: 16400
		// (get) Token: 0x0600E380 RID: 58240 RVA: 0x0026041A File Offset: 0x0025E61A
		// (set) Token: 0x0600E381 RID: 58241 RVA: 0x00260422 File Offset: 0x0025E622
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17004011 RID: 16401
		// (get) Token: 0x0600E382 RID: 58242 RVA: 0x0026042B File Offset: 0x0025E62B
		// (set) Token: 0x0600E383 RID: 58243 RVA: 0x00260433 File Offset: 0x0025E633
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CoinCost
		{
			get
			{
				return this.coinCost_;
			}
			set
			{
				this.coinCost_ = value;
			}
		}

		// Token: 0x0600E384 RID: 58244 RVA: 0x0026043C File Offset: 0x0025E63C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyBuildStartStepScRsp);
		}

		// Token: 0x0600E385 RID: 58245 RVA: 0x0026044A File Offset: 0x0025E64A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyBuildStartStepScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.CoinCost == other.CoinCost && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E386 RID: 58246 RVA: 0x00260488 File Offset: 0x0025E688
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.CoinCost != 0U)
			{
				num ^= this.CoinCost.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E387 RID: 58247 RVA: 0x002604E0 File Offset: 0x0025E6E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E388 RID: 58248 RVA: 0x002604E8 File Offset: 0x0025E6E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E389 RID: 58249 RVA: 0x002604F4 File Offset: 0x0025E6F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CoinCost != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.CoinCost);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E38A RID: 58250 RVA: 0x00260550 File Offset: 0x0025E750
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.CoinCost != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CoinCost);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E38B RID: 58251 RVA: 0x002605A8 File Offset: 0x0025E7A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyBuildStartStepScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.CoinCost != 0U)
			{
				this.CoinCost = other.CoinCost;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E38C RID: 58252 RVA: 0x002605F8 File Offset: 0x0025E7F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E38D RID: 58253 RVA: 0x00260604 File Offset: 0x0025E804
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.CoinCost = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005A04 RID: 23044
		private static readonly MessageParser<TrainPartyBuildStartStepScRsp> _parser = new MessageParser<TrainPartyBuildStartStepScRsp>(() => new TrainPartyBuildStartStepScRsp());

		// Token: 0x04005A05 RID: 23045
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005A06 RID: 23046
		public const int RetcodeFieldNumber = 9;

		// Token: 0x04005A07 RID: 23047
		private uint retcode_;

		// Token: 0x04005A08 RID: 23048
		public const int CoinCostFieldNumber = 2;

		// Token: 0x04005A09 RID: 23049
		private uint coinCost_;
	}
}
